/*
 * PyrolysisGasEnergyKernel.h
 * 用于计算能量方程中由热解气体流动引起的能量交换
 *  Created on: you2017年8月31日
 *      Author: liuxiao
 */



#pragma once

#include "MUltiPhasePyrolysisMaterial.h"//获得热解热参数
#include "ComputeRhoMaterial.h"//获得热解率参数
#include "PyrolysisGasPropertyMaterial.h"//获得热解气体参数
#include "Kernel.h"

class PyrolysisGasEnergyKernel : public Kernel
{
public:

	PyrolysisGasEnergyKernel(const InputParameters & parameters);

protected:
  virtual Real computeQpResidual();
  virtual Real computeQpJacobian();

private:
  const VariableGradient &  _gradient_P_value;
  const MaterialProperty<Real> & _rhog;
  const MaterialProperty<Real> & _cpg;
  const MaterialProperty<Real> & _permeability;
  const MaterialProperty<Real> & _viscosity;
  RealVectorValue _mg;

};

template<>
InputParameters validParams<PyrolysisGasEnergyKernel>();

